package myNetty.action12;


import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class DefaultServerProvider{

    private static final List<String> PROTOCOLS = Collections.unmodifiableList(Arrays
            .asList("spdy/3.1", "http/1.1", "http/1.0", "Unknown"));

    private String protocol;

    public String getSelectedProtocol() {
        return protocol;
    }

    public void protocolSelected(String arg0) {
        this.protocol = arg0;
    }

    public List<String> protocols() {
        return PROTOCOLS;
    }

    public void unsupported() {
        protocol = "http/1.1";
    }

}
